<?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
	'id'=>Yii::app()->controller->id.'-form',
    'enableAjaxValidation' => false,
    'type' => 'horizontal',
)); ?>

<?php echo $form->errorSummary($model); ?>
	<?php echo $form->textFieldGroup($model,'perusahaan_id',array('wrapperHtmlOptions'=>array('class'=>'col-md-10'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control')))); ?>
	<?php echo $form->textFieldGroup($model,'provinsi_id',array('wrapperHtmlOptions'=>array('class'=>'col-md-10'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>2)))); ?>
	<?php echo $form->textFieldGroup($model,'nama_kilang',array('wrapperHtmlOptions'=>array('class'=>'col-md-10'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>50)))); ?>
	<?php echo $form->textFieldGroup($model,'alias',array('wrapperHtmlOptions'=>array('class'=>'col-md-10'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>30)))); ?>
	<?php echo $form->textFieldGroup($model,'kapasitas',array('wrapperHtmlOptions'=>array('class'=>'col-md-10'),'labelOptions'=>array('class'=>'col-md-2'),'widgetOptions'=>array('htmlOptions'=>array('class'=>'form-control form-cascade-control','maxlength'=>100)))); ?>
<div class="form-group">
    <div class="col-sm-offset-3 col-sm-9 col-md-offset-2 col-md-10">
        <?php
        $this->widget('booster.widgets.TbButton', array(
            'buttonType' => 'reset',
            'context' => 'danger',
            'label' => Yii::t('app', 'Batal'),
            'htmlOptions' => array('onclick' => 'history.go(-1);'),
        ));
        ?>
        <?php
        $this->widget('booster.widgets.TbButton', array(
            'buttonType' => 'submit',
            'context' => 'primary',
            'label' => Yii::t('app', 'Simpan'),
        ));
        ?>
    </div>
</div>
<?php $this->endWidget(); ?>
<?php (Yii::app()->booster) ? Yii::app()->booster->registerYiiCss() : null; ?>
